import * as actionTypes from './actionTypes'

export const fetchArticle = () => ({
    type: actionTypes.FETCH_ARTICLE
})

export const fetchArticleSuccess = payload => ({
    type: actionTypes.FETCH_ARTICLE_SUCCESS,
    payload
})

export const fetchTopic = () => ({
    type: actionTypes.FETCH_TOPIC
})

export const fetchTopicSuccess = payload => ({
    type: actionTypes.FETCH_TOPIC_SUCCESS,
    payload
})
